package com.lzk.org.mapper;

import com.lzk.basic.mapper.BaseMapper;
import com.lzk.org.domain.Employee;
import com.lzk.system.domain.Menu;

import java.util.List;


public interface EmployeeMapper extends BaseMapper<Employee> {

    void saveEmployeeRole(Employee employee);

    void removeEmployeeRole(Long id);

    /**
     * 通过logininfo_id查询权限 sn
     * @param id
     * @return
     */
    List<String> loadPermissionsByLogininfoId(Long id);

    /**
     * 通过logininfo_id查询 子菜单
     * @param id
     * @return
     */
    List<Menu> loadMenusByLogininfoId(Long id);

    /**
     * 通过logininfoId 查询 emp信息
     * @param id
     * @return
     */
    Employee loadByLogininfoId(Long id);

    /**
     * 根据店铺ID查询所有员工
     * @param shop_id
     * @return
     */
    List<Employee> findAllByShopId(Long shop_id);
}
